<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html style="height: 100%;" xmlns="http://www.w3.org/1999/xhtml" xml:lang="vi-vn" lang="vi-vn">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>
	<?php header( 'Cache-Control: max-age=7200' ); ?>
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <?php
        Yii::app()->clientScript->registerMetaTag($this->getMetaDescription(), 'description');
        Yii::app()->clientScript->registerMetaTag($this->getMetaKeywords(), 'keywords');
    ?>
    <meta name="Author" content="Bs Anh Thư" />
    <meta name="Copyright" content="Copyright 2014 by Bs Anh Thư" />
    <meta name="Generator" content="Phòng khám sản phụ khoa đà nẵng" />
    <meta name="robots" content="index, follow" />


    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/phongkhamsanphukhoa.css"/>
<!--    <link rel="stylesheet" type="text/css" href="--><?php //echo Yii::app()->request->baseUrl; ?><!--/css/jquery-ui-1.10.3.custom.css"/>-->
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.touchSwipe.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.advancedSlider.min.js"></script>

    <!-- blueprint CSS framework -->
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection"/>
    <![endif]-->

    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/common.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.jcarousel.min.js"></script>

    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-55544040-1', 'auto');
        ga('send', 'pageview');

    </script>
</head>

<body>
<script type="text/javascript">
    /*<![CDATA[*/
    jQuery(document).ready(function ($) {
        $('#lazy-loading-slider').advancedSlider({width: 977,
            height: 276,
            skin: 'text-thumbnail',
            shadow: false,
            effectType: 'fade',
            overrideTransition: true,
            slideButtons: false,
            thumbnailType: 'scroller',
            thumbnailWidth: 282,
            thumbnailHeight: 85,
            thumbnailOrientation: 'vertical',
            thumbnailArrows: false,
            thumbnailSwipe: false,
            thumbnailMouseScroll: true,
            thumbnailScrollbar: true,
            scrollbarSkin: 'scrollbar-7-light',
            keyboardNavigation: true
        });
    });
    /*]]>*/
</script>

<div style="position:absolute; right:0;">
</div>

<div id="main">
    <div class="bg_banner">
        <div id="header">
            <div id="logo">
                <?php echo CHtml::image(Yii::app()->baseUrl . '/images/logo.png', Config::GetValue('name'),array('width'=>500, 'height'=>138)) ?>
            </div>
            <div id="banner">
                <?php echo CHtml::image(Yii::app()->baseUrl . '/images/banner.png', Config::GetValue('name'),array('height'=>'138px')) ?>
            </div>
            <div class="clearboth"></div>
        </div>
        <div class="HeaderContent">
            <ul id="menu">
                <?php
                $stt = 0;
                foreach (Menu::model()->findAllByAttributes(array('is_active' => 1), array('order' => 'ordering ASC')) as $mdMenu) {
                    $link = "";
                    $stt ++;
                    ?>
                    <li><?php
                        if ($mdMenu->link != null || $mdMenu->link != "") {
                            $link = $mdMenu->link;
                        } else {
                            if ($mdMenu->alias != null || $mdMenu->alias != "") {
                                $arrController = explode("/",$mdMenu->controler);
                                $link = Yii::app()->createUrl( $arrController[0]. '/' . $mdMenu->action, array('alias' => $mdMenu->alias));

                            } else
                                $link = Yii::app()->createUrl($mdMenu->controler . '/' . $mdMenu->action);
                        }
                        if(isset($this->stt_link) && ($mdMenu->id == $this->stt_link)){
                            echo CHtml::link($mdMenu->name, $link,array('class'=>'Active'));
                        }else
                            echo CHtml::link($mdMenu->name, $link);
                        //echo CHtml::link($mdMenu->name, Yii::app()->homeUrl,array('class'=>'Active'))

                        ?></li>
                <?php } ?>
                <li style=" font: 16px;font-size: 16px;color: #8971B9;font-weight: bold;padding:6px 0px 5px 110px;border-right: none;margin: 0px;">Hotline: 091 343 05 45</li>
                <li class="clearboth"></li>
            </ul>
        </div>
    </div>
    <div class="MainContentOuter">
        <div class="MainContent">
            <!-- content -->
            <?php echo $content; ?>
        </div>
    </div>

    <!-- footer -->
    <div id="footer">
<!--        <div class="footer-content">-->
<!--            --><?php //echo Config::model()->GetValue('thongtin_footer'); ?>
<!--            -->
<!--        </div>-->
        <div class="footer-content">
            <div style="font-size: 15px; color: #fff">Phòng khám SẢN PHỤ KHOA - BS ANH THƯ</div>
            <address style="color: #FFF;font-size: 12px">K33A/02 Cao Thắng &nbsp;- P.&nbsp;Thanh Bình&nbsp;- Q.&nbsp;Hải Châu&nbsp;- Tp.&nbsp;Đà Nẵng  <br>Điện thoại: (<strong>0511) 3519&nbsp;890 -&nbsp;091&nbsp;343 05 45</strong>  </address>
        </div>
    </div>
</div>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-ui.min.js"></script>
</body>
</html>